import request from '@/utils/request'

export default {
    //　生成订单
    createOrder(courseId){
        return request({
            url: `/eduorder/order/createOrder/${courseId}`,
            method: 'post'
        })
    },
    // 根据订单id查询订单信息
    getOrderInfo(orderId){
        return request({
            url: `/eduorder/order/getOrder/${orderId}`,
            method: 'get'
        })
    },
    //生成二维码方法
    createNative(orderId){
        return request({
            url: `/eduorder/paylog/createNative/${orderId}`,
            method: 'get'
        })
    },   
    //查询二维码方法
    queryPayStatus(orderId){
        return request({
            url: `/eduorder/paylog/queryPayStatus/${orderId}`,
            method: 'get'
        })
    }   
}